package com.lanswon.qzsmk.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.lanswon.qzsmk.model.Cert;
import com.lanswon.qzsmk.vo.AcountDetailVo;
import com.lanswon.qzsmk.vo.CardDetailedVo;
import com.lanswon.qzsmk.vo.QueryCardInfoVo;
import com.lanswon.qzsmk.vo.ReadCardVo;

@Repository
public interface QueryCardInfoMapper {
  
	List<QueryCardInfoVo> queryCardInfo(QueryCardInfoVo qci);
	
	int queryCardInfoCount(QueryCardInfoVo qci);
	
	/**
	 * 申领查询
	 * @param qci
	 * @return
	 */
	List<QueryCardInfoVo>queryApplication(QueryCardInfoVo qci);
	
	int queryApplicationCount(QueryCardInfoVo qci);
	
	/**
	 * 读卡时使用
	 * @param citizenCardNo
	 * @return
	 */
	QueryCardInfoVo queryinfoByCitizenCardNo(String citizenCardNo);
	
	/**
	 * 查询卡详细信息
	 * @param citizenCardNo
	 * @return
	 */
	CardDetailedVo queryDetailByCitizenCardNo(String citizenCardNo);
	
	/**
	 * 根据批次号查询
	 * @param batchApplyNo
	 * @param certType
	 * @return
	 */
	Cert queryCertByBatchApplyNoAndCertType(String batchApplyNo,String certType);
	
	Cert queryCertByControlIdAndCertType(String controlId,String certType);
	
	List<AcountDetailVo> queryAcountDatailByCitizenCardNo(String citizenCardNo,String feeType,String cardpCode);
	
	/**
	 * 读卡查询卡数据信息
	 * @param citizenCardNo
	 * @return
	 */
	ReadCardVo queryCardDataByCitizenCardNo(String citizenCardNo);
}
